function storeValuesByIdsOfCheckButtons(prefix_id,storageField_id,txtSeparation) {
	var fields = $('[id^='+prefix_id+']').serializeArray();
    $("#"+storageField_id).attr("value","");
    jQuery.each(fields, function(i, field){
      $("#"+storageField_id).attr(
    		  "value",$("#"+storageField_id).attr("value") + field.value + txtSeparation);
    });
    
    if(document.getElementById(storageField_id).value != "")
    	document.getElementById(storageField_id).value = document.getElementById(storageField_id).value.substring(
    			0,document.getElementById(storageField_id).value.length-txtSeparation.length
    	);
}

function activate_CheckAll(prefix_id,fieldToCheckAll_Id){
	$(document).ready(function(){
	 $("#"+fieldToCheckAll_Id).click( function() {
		 $('[id^='+prefix_id+']').attr("checked",$("#"+fieldToCheckAll_Id).is(":checked")); 
	 });
	});
}
